package com.xc.h05.mapper;

import com.xc.h05.entity.Appointment;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
* @author 30658
* @description 针对表【appointment】的数据库操作Mapper
* @createDate 2025-03-07 19:54:45
* @Entity com.xc.h05.entity.Appointment
*/
@Mapper
public interface AppointmentMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Appointment record);

    int insertSelective(Appointment record);

    Appointment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Appointment record);

    int updateByPrimaryKey(Appointment record);
    List<Appointment> findAll();
    //根据多个status查询
    List<Appointment> findByIds(List list);
    @MapKey("consult_id")
    List<Map<String, Object>> findConsultInfo();

}
